package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-12-21
 */
@Mapper
public interface OrdersettingMapper extends BaseMapper<OrderSetting> {

    List<OrderSetting> getOrderSettingByMonth(LocalDate start, LocalDate end);

    int countNumberByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);
}
